package strategy;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;


/**
 * 可操作的策略组合
 */
public abstract class CompositeStrategy implements Strategy{

  private List<Strategy> strategyList=new ArrayList<>();
  public void add(Strategy strategy){
    strategyList.add(strategy);
  }

  @Override
  public BigDecimal calculate(BigDecimal price,BigDecimal cost,Integer code) {
    return BigDecimal.ZERO;
  }


}
